package com.he.domain.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;


/**
 * @author He
 * @version 1.0
 * @Date 2023/9/15 21:42
 * @Desc 普通链接
 */
@Data
@Schema
public class CommonLinkDTO {
    /**
     * 链接id
     */
    @Schema(description = "链接id")
    private Integer id;

    /**
     * 链接类型
     */
    @NotBlank(message = "链接类型不能为空")
    @Schema(description = "链接类型")
    private Integer type;

    /**
     * 友链名称
     */
    @NotBlank(message = "链接名不能为空")
    @Schema(description = "链接名称")
    private String name;

    /**
     * 友链地址
     */
    @NotBlank(message = "地址不能为空")
    @Schema(description = "链接地址")
    private String url;

}
